package bean;

import java.sql.Date;

public class Employee {
    private int employeeId; // 员工编号
    private String employeeName; // 员工姓名
    private int departmentId; // 员工所属部门编号
    private String sex; // 员工性别
    private Date birthdate; // 员工出生日期
    private String telephone; // 员工电话
    private String address; // 员工住址
    private Date enrollmentDate; // 员工入职日期
    private String departmentName; // 员工所属部门名称

    // 添加的员工对象
    public Employee(String employeeName, int departmentId, String sex, Date birthdate, String telephone, String address, Date departmentName) {
        this.employeeName = employeeName;
        this.departmentId = departmentId;
        this.sex = sex;
        this.birthdate = birthdate;
        this.telephone = telephone;
        this.address = address;
        this.enrollmentDate = departmentName;
    }

    public Employee(int employeeId, String employeeName, int departmentId, String sex, String telephone, String departmentName) {
        this.employeeId = employeeId;
        this.employeeName = employeeName;
        this.departmentId = departmentId;
        this.sex = sex;
        this.telephone = telephone;
        this.departmentName = departmentName;
    }

    // 查询的员工对象
    public Employee(int employeeId, String employeeName, int departmentId, String sex, Date birthdate, String telephone, String address, Date enrollmentDate, String departmentName) {
        this.employeeId = employeeId;
        this.employeeName = employeeName;
        this.departmentId = departmentId;
        this.sex = sex;
        this.birthdate = birthdate;
        this.telephone = telephone;
        this.address = address;
        this.enrollmentDate = enrollmentDate;
        this.departmentName = departmentName;
    }

    public int getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(int employeeId) {
        this.employeeId = employeeId;
    }

    public String getEmployeeName() {
        return employeeName;
    }

    public void setEmployeeName(String employeeName) {
        this.employeeName = employeeName;
    }

    public int getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(int departmentId) {
        this.departmentId = departmentId;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Date getBirthdate() {
        return birthdate;
    }

    public void setBirthdate(Date birthdate) {
        this.birthdate = birthdate;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getEnrollmentDate() {
        return enrollmentDate;
    }

    public void setEnrollmentDate(Date enrollmentDate) {
        this.enrollmentDate = enrollmentDate;
    }

    public String getDepartmentName() {
        return departmentName;
    }

    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }
}
